﻿<Window x:Class="LibreTimeTracker.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LibreTimeTracker"
        WindowStyle="None"
        AllowsTransparency="True"
        Background="Transparent"
        Icon="pack://application:,,,/LibreTimeTracker;component/Resources/Logo.ico"
        ResizeMode="CanMinimize"
        MouseLeftButtonDown="Window_MouseLeftButtonDown"
        Closing="Window_Closing">
    
    <Grid>
        
        <Canvas>
            <!--<Path Data="
                  M 0,10
                  C 0,10 25,80 0,150
                  C 0,150 0,160 10, 160
                  C 10,160 115,135 220,160
                  C 220,160 230,160 230,150
                  C 230,150 205,80 230,10
                  C 230,10 230,0 220,0
                  C 220,0 115,25 10,0
                  C 10,0 0,0 0,10"
                  StrokeThickness="0" Stroke="Black">-->
                <Path Data="
                  M 0,10
                  C 0,10 25,80 0,150
                  C 0,150 0,160 10, 160
                  C 10,160 115,135 220,160
                  C 220,160 230,160 230,150
                  C 230,150 205,80 230,10
                  C 230,10 230,0 220,0
                  C 220,0 115,25 10,0
                  C 10,0 0,0 0,10"
                  StrokeThickness="0" Stroke="Black">
                <Path.Fill>
                    <ImageBrush ImageSource="/LibreTimeTracker;component/Resources/Texture.jpg" Opacity="0.75" />
                </Path.Fill>
                <Path.Effect>
                    <DropShadowEffect ShadowDepth="5" BlurRadius="10" Color="Tan"/>
                </Path.Effect>
            </Path>
            
            <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Width="130" Margin="50,45,0,0">
                <StackPanel Orientation="Horizontal" Margin="5">
                    <Button Content="X" Width="20" Margin="5"/>
                    <Button Content="Y" Width="20" Margin="5"/>
                    <Button Content="Z" Width="20" Margin="5"/>
                    <Button Content="A" Width="20" Margin="5"/>
                </StackPanel>
                <Button Content="Check in" Margin="0,5,0,0" />
            </StackPanel>
            
            <Button x:Name="btnMinimize" Margin="205,5,0,0" Click="btnMinimize_Click">
                <Button.Template>
                    <ControlTemplate>
                        <Border HorizontalAlignment="Center" VerticalAlignment="Center" Width="20" Height="20">
                            <Canvas Opacity="1">
                                <Path Data="M 5,5 L 5,5 15,15" StrokeThickness="5" Stroke="White"/>
                                <Path Data="M 5,15 L 5,15 15,5" StrokeThickness="5" Stroke="White"/>
                            </Canvas>
                        </Border>
                    </ControlTemplate>
                </Button.Template>
            </Button>
            
        </Canvas>
        
    </Grid>
    
</Window>
